package com.cnnp.dip.api.client;

import java.util.List;
import java.util.Map;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "grafanaAnnotationApi", url = "${grafana.base-url}", path = "/api/annotations")
public interface GrafanaAnnotationApi {
    @GetMapping
    List<Map<String, Object>> getAnnotations(
        @RequestParam int limit,
        @RequestParam boolean matchAny,
        @RequestParam String dashboardUID,
        @RequestParam int panelId
    );
}